import cv2 as cv
import face_recognition
import numpy as np
#
img = cv.imread('1.jpg')

face_locations = face_recognition.face_locations(img)

for face_location in face_locations:
    top, right, bottom, left = face_location
    cv.rectangle(img, (left, top), (right, bottom), (255,0, 0), 2)

cv.imshow('img', img)
cv.waitKey(0)
cv.destroyAllWindows()